
// export const BaseUrl = "http://localhost:3000/front"

export const BaseUrl = process.env.REACT_APP_API_BASE_URL;
console.log("baseUrl: " + BaseUrl)

// 验证码登录
export const UrlLogin = "/bill/user/loginOrSignup"

// 获取账单
export const UrlGetBillList = "/bill/record/getBillList"

// 新增账单
export const UrlAddBill = "/bill/record/addBill"

// 获取账单汇总
export const UrlGetBillSumInfo = "/bill/record/getBillSumInfo"








// 获取配置信息
export const UrlGetAppConfig = "/bill/v1/getAppShowInfo"

// 检测用户
export const UrlDetectUserInfo = "/bill/api/user/detectUserInfo"



// 获取币种信息
export const UrlGetCoins = "/bill/api/getCoins"

// 获取accounts信息
export const UrlGetUserAccounts = "/bill/api/user/getUserAccounts"

// 获取钱包信息
export const UrlGetUserWallet = "/bill/api/user/getUserWallet"

// 获取用户邀请信息
export const UrlGetMyInviteInfo = "/bill/api/user/getMyInviteInfo"

// 设置用户钱包名称
export const UrlSetWalletName = "/bill/api/user/setWalletName"

// 获取余额
export const UrlWithdrawGetBalance = "/bill/api/withdraw/getBalance"

// 发起提币
export const UrlWithdrawCreate = "/bill/api/withdraw/create"

// 获取用户交易记录信息
export const UrlGetMyTransactions = "/bill/api/user/getMyTransactions"



// 获取充值收益数据
export const UrlGetRechargeIncomeData = "/bill/api/income/getRechargeIncomeData"

// 提取充值收益
export const UrlExtractRechargeIncome = "/bill/api/income/extractRechargeIncome"

// 获取邀请好友收益数据
export const UrlGetInviteIncomeData = "/bill/api/income/getInviteIncomeData"

// 提取邀请好友收益
export const UrlExtractInviteIncome = "/bill/api/income/extractInviteIncome"

// 获取邀请好友收益列表
export const UrlGetInviteIncomeList = "/bill/api/home/getInviteIncomeList"

// 获取转入收益详情
export const UrlGetTransferInDetail = "/bill/api/home/getTransferInDetail"

// 获取转入收益列表
export const UrlGetTransferInEarnList = "/bill/api/home/getTransferInEarnList"

// 获取收益转出列表
export const UrlGetTransferInExtractList = "/bill/api/home/getTransferInExtractList"

// 获取充值入账收益率配置
export const UrlGetRechargeIncomeConfig = "/bill/api/config/getRechargeIncomeConfig"

// 获取转入收益总览
export const UrlGetTransferInEarn = "/bill/api/home/getTransferInEarn"

// 获取邀请好友收益总览
export const UrlGetInviteFriendEarn = "/bill/api/home/getInviteFriendEarn"














//获取验证码
export const UrlGetOtp = "/bill/api/user/register"

//fb登录
export const UrlLoginFacebook = "/bill/v2/facebookUnionLogin"

//获取首页额度
export const UrlGetLoanLimit = "/bill/v1/loanLimit"

//获取用户状态
export const UrlGetUseState = "/bill/v1/userProcess"

//获取BankCode列表
export const UrlGetBankCodeList = "/bill/v1/fetchBankCodes"

//获取贷款信息-申请页使用
export const UrlGetLoanDetail = "/bill/v1/getLoanApplyDetail"

//获取金额试算信息-申请页使用
export const UrlGetLoanApplyDetailByAmount = "/bill/v1/getLoanApplyDetailByAmount"

//确认申请贷款-申请页使用
export const UrlConfirmLoanApply = "/bill/v1/loanApply"

//获取还款信息-还款页使用
export const UrlGetReapyDetail = "/bill/v1/repayInfo"

//获取还款链接-还款页使用
export const UrlGetReapyUrl = "/bill/v1/orderRepayH5"

//记录埋点
export const UrlSaveEvent = "/bill/v1/userBuriedPoint"

//保存aduid
export const UrlSaveAduid = "/bill/v1/saveAduid"

//获取运营商验证码
export const UrlGetDataSmsCode = "/bill/v1/fetchDataSmsCode"

//运营商验证码登录
export const UrlDataSmsCodeLogin = "/bill/v1/fetchDataUserLogin"

//保存app列表
export const UrlSaveFrequentlyApps = "/bill/v1/saveData"

//保存位置信息
export const UrlSaveUserLocation = "/bill/v1/userLocation"

//上传图片
export const UrlUploadImage = "/bill/v1/imageUpload"

//保存人脸信息
export const UrlSaveFaceInfo = "/bill/v1/ocrInfo"

//保存fb信息息
export const UrlSaveFacebookInfo = "/bill/v2/facebookUnionSave"


/**
 * 转换为未映射接口
 * @param {String} apiUrl
 */
export const toUnRefApi = apiUrl => {
    switch (apiUrl) {
        //基本信息
        case "/easemoney/yrXwdOXjoy3ZWGc4rrWqQ": return "/bill/v1/basicInfo"
        //联系人信息
        case "/easemoney/jd3jakd4hmla2A6NXLvg": return "/bill/v1/contactList"
        //工作信息
        case "/easemoney/Al10Gs9YV3TR1mvJ8b5tWA": return "/bill/v1/workInfo"
        //bvn信息
        case "/easemoney/iPYFCf8jkHQXY5NAmHaQ": return "/bill/v1/bvnInfo"
        //银行卡信息
        case "/easemoney/d0cRE1wjWoVPaqutUTyA": return "/bill/v1/bindBankAccount"

        default: return apiUrl
    }
}